<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>人机五子棋</title>
    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }

        body {
            margin: 10px;
        }

        
    </style>

</head>

<body onload="loadDown()">
    <div>
        <div style="height:24px;left:0%;top:0px;position:fixed;z-index:9000;border:3px solid #DDD"> <button
                type="button" onClick="closeFC()">关闭/打开浮窗</button><br /> </div>
        <div id="controlPanel" style="height:24px;left:10%;top:0px;position:fixed;z-index:9000;border:3px solid #DDD">
            <button type="button" onClick="undo()">悔棋</button><br />
        </div>
        <div style="height:24px;left:20%;top:0px;position:fixed;z-index:9000;border:3px solid #DDD"> <button
                type="button" onClick="loadDown()">重新开始</button><br /> </div>
        <div id="controlPanel2" style="height:193px;left:30%;top:0px;position:fixed;z-index:9000;border:3px solid #DDD">
            <button type="button" onClick="setLength(13)">棋盘大小13*13</button><br />
            <button type="button" onClick="setLength(15)">棋盘大小15*15</button><br />
            <button type="button" onClick="setLength(31)">棋盘大小31*31</button><br />
            <button type="button" onClick="setLength(45)">棋盘大小45*45</button><br />
            <button type="button" onClick="openRobotBrain()">开启/关闭人机</button><br />
            <button type="button" onClick="robotBrainInitiative()">让电脑先/后走</button><br />
            <button type="button" onClick="openOrCloseDebug()">开启/关闭调试</button><br />
            <button type="button" onClick="automaticPlayingChess()">电脑对战电脑</button><br />
        </div>
        <canvas id="canvas" onmousedown="play(event)" height="2000" width="2000"
            style="position:absolute;z-index:8000"></canvas>
        <canvas id="canvas2" height="2000" width="2000" style="position:absolute;z-index:7000"></canvas>
        <canvas id="canvas2" height="2000" width="2000" style="position:absolute;z-index:7000"></canvas>
    </div>
</body>
<script src="./index.js"></script>

</html>